<template>
	<view>
		<view class="" style="padding: 20rpx;">
			<rich-text :nodes="context"></rich-text>
		</view>
		<view @click="gotosubjct()" style="width: 100%;height: 80rpx;background-color: #007AFF;font-size: 28rpx;color: #FFFFFF;text-align: center;line-height: 80rpx;
		position: fixed;bottom: 0px;">立即报名</view>
	</view>
</template>

<script>
	import helper from "../../common/helper.js"
	export default {
		data() {
			return {
				artcal_id:'',
				context:''
				
			};
		},
		onLoad(e) {
			e && (this.artcal_id = e.artcal_id);
			console.log('e :>> ', e);
			this.getAds(e.artcal_id)
		},
		methods: {
			gotosubjct(){
				helper.subId = this.artcal_id;
				this.$Router.pushTab({
					name: 'jiaolian_tuandui'
				});
			},
			async getAds(subject_id) {
				let res;
				try {
					res = await this.$request.get('api/home/index/guanggao', {
						data: {
							subject_id: subject_id,
						},
					});
				} catch (e) {
					
					return uni.showToast({
						title: '网络连接失败！',
						icon: 'none',
					});
				}
				console.log('res :>> ', res);
				this.context= res.data.data.fuwenben
				
			},
			
		},
	}
</script>

<style lang="scss">

</style>
